<script>
	export default {
		onLaunch() {

			uni.getStorage({
				key: 'collectList',
				fail: () => {
					uni.setStorage({
						key: 'collectList',
						data: []
					})
				}
			})

			uni.getStorage({
				key: 'theme',
				fail() {
					uni.setStorage({
						key: 'theme',
						data: {
							theme: 'light',
							themeIndex: 0
						}
					})
				}
			})

			uni.getStorage({
				key: 'locale',
				fail() {
					uni.setStorage({
						key: 'locale',
						data: {
							locale: 'zh-CN',
							localeIndex: 0
						},
					})
				}
			})
		},
	}
</script>
<style lang="scss">
	/*每个页面公共css */
	@import "./common/css/common.scss";
</style>
